import request from '@/utils/request';

// 行政区划 {ancestorId: '', xzqhlx: ''}
// xzqhlx 为 province省 city市 district区 street街道 community社区 wg网格 xq小区
export function getXzqh(data) {
  return request({
    url: '/web/base/system/dept/list',
    method: 'post',
    data,
  });
}

// 获取加密信息
export function getCryptConf() {
  return request({
    url: '/framework/crypt/conf',
    headers: {
      isToken: false,
    },
    method: 'get',
  });
}

// 秘钥协商
export function negotiateCrypt(data) {
  return request({
    url: '/framework/crypt/negotiate',
    headers: {
      isToken: false,
    },
    method: 'post',
    data,
  });
}
